package com.aaa.hospital.ManagementEnd.mapper;

import com.aaa.hospital.ManagementEnd.pojo.Diagnose;
import com.aaa.hospital.ManagementEnd.util.DiagnoseDB;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
//lgq
@Mapper
@Repository
public interface DiagnoseDao {
boolean insert(Diagnose diagnose);


//11/7//医生端查询
   List<DiagnoseDB>  queryAll(Integer did);
//通过名字进行模糊查询
   List<DiagnoseDB>  SelectName(@Param("did") Integer did,@Param("name") String name);

//11/8//患者端
   List<DiagnoseDB>  queryHZ(Integer visid);
   //11/8//患者端模糊查詢
   List<DiagnoseDB>  queryHZMH(@Param("visid") Integer visid,@Param("ttime") Date ttime);
}
